<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Parent_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input id="c-parent_id"  
            class="form-control selectpage" 
            data-source="pt/major/index" 
            autocomplete="off"
            placeholder="请输入职称系列名称/编号进行搜索"
            data-field="major_name" 
            data-search-field="id,major_name"
            data-pagination="true"
            data-params='{"custom[parent_id]":"0"}'
            data-format-item="ID{id} / {major_name}"
            name="row[parent_id]" type="text" 
            value="{$row.parent_id>0?$row.parent_id:''}"> -->
            <div class="form-inline" data-toggle="cxselect" data-selects="series,category">
                <select class="series form-control" name="row[series_id]" data-url="pt/major/major" data-value="{$row.series_id|default=''}"></select>
                <select class="category form-control" name="row[category_id]" data-url="pt/major/major" data-query-name="series" data-value="{$row.category_id|default=''}"></select>
             
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Major_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-major_code" class="form-control" name="row[major_code]" type="text" value="{$row.major_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Major_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-major_name" data-rule="required" class="form-control" name="row[major_name]" type="text" value="{$row.major_name|htmlentities}">
        </div>
    </div>
 
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{$row.create_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-update_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{$row.update_time}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
